package com.clj.cloud.authorization_server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.clj.cloud.authorization_server.entity.User;
import com.clj.cloud.authorization_server.provider.OrganizationProvider;
import com.clj.cloud.authorization_server.service.IUserService;

@Service
public class UserService implements IUserService {
	 @Autowired
	    private OrganizationProvider organizationProvider;

	    @Override
	    public User getByUniqueId(String uniqueId) {
	        return organizationProvider.getUserByUniqueId(uniqueId).getData();
	    }
}
